export default [
  {
    path: "/admin",
    layout: false,
    routes: [
      {
        path: "/admin",
        redirect: "/admin/login",
      },
      {
        name: "login",
        path: "/admin/login",
        component: "./Admin/Login",
      },
      {
        component: "./404",
      },
    ],
  },
  {
    path: "/index",
    name: "360看板",
    icon: "areaChart",
    component: "./Index",
  },
  {
    path: "/room",
    name: "教室管理",
    icon: "table",
    component: "./Room",
  },
  {
    path: "/teacher",
    name: "老师管理",
    icon: "smile",
    component: "./Teacher",
  },

  {
    path: "/student/studentClassRecord",
    name: "上课记录",
    icon: "user",
    component: "./Student/studentClassRecord",
    hideInMenu: true,
  },
  {
    path: "/student/renew",
    name: "续费管理",
    icon: "user",
    component: "./Student/renew",
    hideInMenu: true,
  },
  {
    path: "/student/lessonDelivery",
    name: "赠送课时",
    icon: "user",
    component: "./Student/lessonDelivery",
    hideInMenu: true,
  },
  {
    path: "/student",
    name: "学生管理",
    icon: "user",
    component: "./Student",
  },
  {
    path: "/class/record",
    name: "排课记录",
    icon: "file",
    component: "./Class/record",
    hideInMenu: true,
  },
  {
    path: "/class",
    name: "班级管理",
    icon: "team",
    component: "./Class",
  },
  {
    path: "/order",
    name: "上课记录",
    icon: "read",
    component: "./Order",
  },

  {
    path: "/vacation",
    name: "请假管理",
    icon: "rocket",
    component: "./Vacation",
  },
  {
    path: "/course/children",
    name: "课程管理",
    icon: "desktop",
    component: "./Course/children",
    hideInMenu: true,
  },
  {
    path: "/course",
    name: "课程管理",
    icon: "desktop",
    component: "./Course",
  },

  {
    path: "/",
    redirect: "/class",
  },
  {
    component: "./404",
  },
];
